package github.kawaiior.yuanchuxiuzhen.core.init;

import github.kawaiior.yuanchuxiuzhen.Yuanchuxiuzhen;
import github.kawaiior.yuanchuxiuzhen.common.tileentity.*;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class TileEntityInit {
    public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, Yuanchuxiuzhen.MODID);

//    public static final RegistryObject<TileEntityType<MaterialConverterTileEntity>> MATERIAL_CONVERTER_TILE_ENTITY =
//            TILE_ENTITY_TYPES.register("materal_converter_tile_entity", ()->TileEntityType.Builder
//                    .create(MaterialConverterTileEntity::new, BlockInit.MATERIAL_CONVERTER_BLOCK.get()).build(null));

    public static final RegistryObject<TileEntityType<MaterialConverterTileEntity>> MATERIAL_CONVERTER_TILE_ENTITY =
            TILE_ENTITY_TYPES.register("material_converter_tile_entity",()-> TileEntityType.Builder
                    .create(MaterialConverterTileEntity::new, BlockInit.MATERIAL_CONVERTER_BLOCK.get()).build(null));

    public static final RegistryObject<TileEntityType<GongFaCreateTileEntity>> GONG_FA_CREATE_TILE_ENTITY =
            TILE_ENTITY_TYPES.register("gong_fa_create_tile_entity",()-> TileEntityType.Builder
                    .create(GongFaCreateTileEntity::new, BlockInit.GONG_FA_CREATE_BLOCK.get()).build(null));

    public static final RegistryObject<TileEntityType<ManaStoneConverterTileEntity>> MANA_STONE_CONVERTER_TILE_ENTITY =
            TILE_ENTITY_TYPES.register("mana_stone_converter_tile_entity",()-> TileEntityType.Builder
                    .create(ManaStoneConverterTileEntity::new, BlockInit.MANA_STONE_CONVERTER_BLOCK.get()).build(null));

    public static final RegistryObject<TileEntityType<PelletFurnaceTileEntity>> PELLET_FURNACE_TILE_ENTITY =
            TILE_ENTITY_TYPES.register("pellet_furnace_tile_entity",()->TileEntityType.Builder
                    .create(PelletFurnaceTileEntity::new, BlockInit.PELLET_FURNACE_BLOCK.get()).build(null));

    public static final RegistryObject<TileEntityType<WeaponFurnaceTileEntity>> WEAPON_FURNACE_TILE_ENTITY =
            TILE_ENTITY_TYPES.register("weapon_furnace_tile_entity", ()->TileEntityType.Builder
                    .create(WeaponFurnaceTileEntity::new, BlockInit.WEAPON_FURNACE_BLOCK.get()).build(null));

//    public static final RegistryObject<TileEntityType<ExampleGuiTileEntity>> EXAMPLE_GUI_TILE_ENTITY =
//            TILE_ENTITY_TYPES.register("example_gui_tile_entity",()-> TileEntityType.Builder.create(ExampleGuiTileEntity::new,BlockInit.EXAMPLE_GUI_BLOCK.get()).build(null));

}
